﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.FP
{
    /// <summary>
    /// 工作流配置表
    /// </summary>
    public class FP_FlowProcess
    {
        /// <summary>
        /// 本步骤内容
        /// </summary>
        public FlowProcessItem StartState { get; set; }
        /// <summary>
        /// 本步骤动作名称
        /// </summary>
        public FlowProcessItem Action { get; set; }
        /// <summary>
        /// 下一步骤名称
        /// </summary>
        public FlowProcessItem ToState { get; set; }
        /// <summary>
        /// 推送下一步骤人
        /// </summary>
        public AssigneeItem Assignees { get; set; }
        /// <summary>
        /// 推送人员
        /// </summary>
        public List<PushpersonnelList> RenYuanList { get; set; }
        /// <summary>
        /// 推送部门（关联大屏）
        /// </summary>
        public FlowProcessItem ToDept { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        public UserPost UserPosts { get; set; }
    }



    /// <summary>
    /// 子项实体
    /// </summary>
    public class FlowProcessItem 
    {
        /// <summary>
        /// 流程ID
        /// </summary>
        public String Id { get; set; }
        /// <summary>
        /// 流程名称
        /// </summary>
        public String Name { get; set; }
    }

    /// <summary>
    /// 授权人或角色子项实体
    /// </summary>
    public class AssigneeItem
    {
        /// <summary>
        /// 角色ID
        /// </summary>
        public List<String> RoleId { get; set; }
        /// <summary>
        /// 审批用户ID
        /// </summary>
        public List<String> UserId { get; set; }
        /// <summary>
        /// 抄送人员Id
        /// </summary>
        public List<String> PersonId { get; set; }
    }


    public class PushpersonnelList
{
        /// <summary>
        /// 人员ID
        /// </summary>
        public string Id { get; set; }
        /// <summary>
        /// 人员姓名
        /// </summary>
        public String Name { get; set; }
    }
    public class UserPost {
        /// <summary>
        /// 职位值
        /// </summary>
        public string UserPosts { get; set; }
      
    }
}
